<?php
// member settting
$pwdValidator = new PasswordValidator();
$pwdValidator->minLength(6);
$pwdValidator->checkHistoricalPasswords(6);
$pwdValidator->characterStrength(3, array("lowercase", "uppercase", "digits", "punctuation"));
//Member::set_password_validator($pwdValidator);

// set custom login
Authenticator::register('MyAuthenticator');
Authenticator::unregister('MemberAuthenticator');
Authenticator::set_default_authenticator('MyAuthenticator');

if(class_exists('AuditTrailExtension')){
	DataObject::add_extension('Member', 'AuditTrailExtension');
}